import request from '@/utils/request'

// 查询签证咨询列表
export function listCons(query) {
  return request({
    url: '/member/cons/list',
    method: 'get',
    params: query
  })
}

// 查询签证咨询详细
export function getCons(id) {
  return request({
    url: '/member/cons/' + id,
    method: 'get'
  })
}

// 新增签证咨询
export function addCons(data) {
  return request({
    url: '/member/cons',
    method: 'post',
    data: data
  })
}

// 修改签证咨询
export function updateCons(data) {
  return request({
    url: '/member/cons',
    method: 'put',
    data: data
  })
}

// 删除签证咨询
export function delCons(id) {
  return request({
    url: '/member/cons/' + id,
    method: 'delete'
  })
}

// 导出签证咨询
export function exportCons(query) {
  return request({
    url: '/member/cons/export',
    method: 'get',
    params: query
  })
}